package com.dkhseep.bigevent.anno;

import com.auth0.jwt.interfaces.Payload;
import com.dkhseep.bigevent.validation.StateValidation;
import jakarta.validation.Constraint;

import java.lang.annotation.*;

@Documented
@Constraint(validatedBy = {StateValidation.class})
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)

public @interface State {
    String message() default "文章只能是：草稿或已发布";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
